home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1996 September & October / Amiga-CD 1996 #9-10.iso / demos / storm-c / stormc / include / dos / stdio.h < prev    next >
C/C++ Source or Header  |  1994-03-15  |  838b  |  33 lines

  1. #ifndef DOS_STDIO_H
  2. #define DOS_STDIO_H
  3. /*
  4. **
  5. **    $VER: stdio.h 36.6 (1.11.91)
  6. **    Includes Release 40.15
  7. **
  8. **    ANSI-like stdio defines for dos buffered I/O
  9. **
  10. **    (C) Copyright 1989-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. **
  13. */
  14.  
  15. #define ReadChar()        FGetC(Input())
  16. #define WriteChar(c)        FPutC(Output(),(c))
  17. #define UnReadChar(c)        UnGetC(Input(),(c))
  18. /* next one is inefficient */
  19. #define ReadChars(buf,num)    FRead(Input(),(buf),1,(num))
  20. #define ReadLn(buf,len)        FGets(Input(),(buf),(len))
  21. #define WriteStr(s)        FPuts(Output(),(s))
  22. #define VWritef(format,argv)    VFWritef(Output(),(format),(argv))
  23.  
  24. /* types for SetVBuf */
  25. #define BUF_LINE    0    /* flush on \n, etc */
  26. #define BUF_FULL    1    /* never flush except when needed */
  27. #define BUF_NONE    2    /* no buffering */
  28.  
  29. /* EOF return value */
  30. #define ENDSTREAMCH    -1
  31.  
  32. #endif    /* DOS_STDIO_H */
  33.